package mysql

//房源
import "gorm.io/gorm"

type House struct {
	gorm.Model
	Title     string `gorm:"type:varchar(30);not null;comment:房源标题"`
	Lease     string `gorm:"type:enum('整租','合租');not null;comment:租赁方式"`
	Money     string `gorm:"type:varchar(30);not null;comment:租金"`
	Deposit   string `gorm:"type:varchar(30);not null;comment:押金规则"`
	Area      int    `gorm:"type:int(11);not null;comment:房屋面积"`
	Ancillary string `gorm:"type:varchar(30);not null;comment:配套设施"`
	UserId    int    `gorm:"type:int(11);not null;comment:用户ID"`
}
